// 现场正式环境
//var baseUrl = "http://172.30.27.129:8090/"
// 公司测试环境
var baseUrl = "http://192.168.1.208:8090/"
// var baseUrl = "http://139.186.162.149:8080/"
// var baseUrl =location.protocol+"//"+location.host+"/"
var topicObj = {
  type:"萧山机场图",
  name:"萧山机场",
  id:"20034",
  mapType:"专题图",
  // 底图
  baseMap:[{
    id:"20015",
    url:baseUrl+"geoserver/gwc/service/wmts?ZSHC:ZSHC_FXQ_Tile_Technology",
    layer:"ZSHC:ZSHC_FXQ_Tile_Technology",
    mapserviceType:"wmts",
    type:"wmts",
    display:true,
    crs:"EPSG:900913",
    name:"ZSHC:ZSHC_FXQ_Tile_Technology",
    isPiece:0,
    xmax: "120.45869772700011",
    xmin: "120.39894907500002",
    ymax: "30.257321803000053",
    ymin: "30.218357766000054"
  }
],
  // 要素区域
  baseElement:[
    {
      id:"100",
      url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_dlhl_pl&outputFormat=application%2Fjson",
      layer:"ZSHC%3Afxq_dg_dlhl_pl",
      mapserviceType:"wfs",
      type:"wfs",
      display:false,
      crs:"EPSG:4326",
      name:"灯光回路",
      options: {
        isControl: true,
        isvisible: false
      }
    },
    {
      id:"101",
      // url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_zhd_pt&outputFormat=application%2Fjson",
      // layer:"ZSHC%3Afxq_dg_zhd_pt",
      url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:cf_dg_zhd_pt&outputFormat=application%2Fjson",
      layer:"ZSHC:cf_dg_zhd_pt",
      mapserviceType:"wfs",
      type:"wfs",
      display:false,
      crs:"EPSG:4326",
      name:"灯具点位",
      options: {
        isControl: true,
        isvisible: false
      }
    },
    {
      id:"102",
      url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_dx_pt&outputFormat=application%2Fjson",
      layer:"ZSHC%3Afxq_dg_dx_pt",
      mapserviceType:"wfs",
      type:"wfs",
      display:false,
      crs:"EPSG:4326",
      name:"灯箱",
      options: {
        isControl: true,
        isvisible: false
      }
    },
    {
      id:"105",
      url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_jp_jwaqm_pg&outputFormat=application/json",
      layer:"ZSHC:fxq_jp_jwaqm_pg",
      mapserviceType:"wfs",
      type:"wfs",
      display:false,
      crs:"EPSG:4326",
      name:"机位信息",
      options: {
        isControl: true,
        isvisible: true
      }
    },{
      id:"106",
      url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_rggzw_jzwm_pgfs&outputFormat=application/json",
      layer:"ZSHC:fxq_rggzw_jzwm_pgfs",
      mapserviceType:"wfs",
      type:"wfs",
      display:false,
      crs:"EPSG:4326",
      name:"建筑设施",
      options: {
        isControl: true,
        isvisible: true
      }
    },
    // {
    //   id:"107",
    //   url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_dm_dmbk_pg&maxFeatures=3000&outputFormat=application/json",
    //   // url: baseUrl+"geoserver/ZSHC/wms?service=WMS&version=1.1.0&request=GetMap&layers=ZSHC%3Afxq_dm_dmbk_pg&bbox=120.402435302734%2C30.2218952178955%2C120.451362609863%2C30.2525520324707&width=768&height=481&srs=EPSG%3A4326&styles=&format=application/openlayers",
    //   layer:"ZSHC:fxq_dm_dmbk_pg",
    //   mapserviceType:"wfs",
    //   type:"wfs",
    //   display:false,
    //   crs:"EPSG:4326",
    //   name:"道面",
    //   options: {
    //     isControl: true,
    //     isvisible: true
    //   }
    // }
  ]
};

// wms

// var baseUrl =location.protocol+"//"+location.host+"/"
// var topicObj = {
//   type:"萧山机场图",
//   name:"萧山机场",
//   id:"20034",
//   mapType:"专题图",
//   // 底图
//   baseMap:[{
//     id:"20015",
//     url:baseUrl+"geoserver/gwc/service/wmts?ZSHC:ZSHC_FXQ_Tile_Technology",
//     layer:"ZSHC:ZSHC_FXQ_Tile_Technology",
//     mapserviceType:"wmts",
//     type:"wmts",
//     display:true,
//     crs:"EPSG:900913",
//     name:"ZSHC:ZSHC_FXQ_Tile_Technology",
//     isPiece:0,
//     xmax: "120.45869772700011",
//     xmin: "120.39894907500002",
//     ymax: "30.257321803000053",
//     ymin: "30.218357766000054"
//   }
// ],
//   // 要素区域
//   baseElement:[
//     {
//       id:"100",
//       url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_dlhl_pl&outputFormat=application%2Fjson",
//       layer:"fxq_dg_dlhl_pl",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"灯光回路",
//       options: {
//         isControl: true,
//         isvisible: false
//       }
//     },
//     {
//       id:"101",
//       url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_zhd_pt&outputFormat=application%2Fjson",
//       layer:"fxq_dg_zhd_pt",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"灯具点位",
//       options: {
//         isControl: true,
//         isvisible: false
//       }
//     },
//     {
//       id:"102",
//       url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC%3Afxq_dg_dx_pt&outputFormat=application%2Fjson",
//       layer:"fxq_dg_dx_pt",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"灯箱",
//       options: {
//         isControl: true,
//         isvisible: false
//       }
//     },
//     {
//       id:"105",
//       url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_jp_jwaqm_pg&outputFormat=application/json",
//       layer:"fxq_jp_jwaqm_pg",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"机位信息",
//       options: {
//         isControl: true,
//         isvisible: true
//       }
//     },{
//       id:"106",
//       url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_rggzw_jzwm_pgfs&outputFormat=application/json",
//       layer:"fxq_rggzw_jzwm_pgfs",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"建筑设施",
//       options: {
//         isControl: true,
//         isvisible: true
//       }
//     },
//     {
//       id:"107",
//       // url:baseUrl+"geoserver/ZSHC/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=ZSHC:fxq_dm_dmbk_pg&maxFeatures=1000&outputFormat=application/json",
//       url: baseUrl+"geoserver/ZSHC/wms?service=WMS&version=1.1.0&request=GetMap&layers=ZSHC%3Afxq_dm_dmbk_pg&bbox=120.402435302734%2C30.2218952178955%2C120.451362609863%2C30.2525520324707&width=768&height=481&srs=EPSG%3A4326&styles=&format=application/openlayers",
//       layer:"fxq_dm_dmbk_pg",
//       workspace:'ZSHC',
//       mapserviceType:"wfs",
//       type:"wfs",
//       display:false,
//       crs:"EPSG:4326",
//       name:"道面",
//       options: {
//         isControl: true,
//         isvisible: true
//       }
//     }
//   ]
// };



